package cvi.com.reader.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 梅涛 on 2020/8/3.
 */

public class MusicListDataBean implements Serializable {

    /**
     * code : 1
     * data : [{"id":15,"title":"Piano Sonata No.16 in C ","author":"佚名","media_path":"/uploads/bgm/35fcc296110a16ea65aa28858887a0c1d8d739ce.mp3","bgm_info":{"bgm_id":15,"duration":"00:06:33"}},{"id":16,"title":"Salut d'amour op","author":"佚名","media_path":"/uploads/bgm/c8397885f8ec2e7db35235cfd2392096251a31d0.mp3","bgm_info":{"bgm_id":16,"duration":"00:03:08"}},{"id":17,"title":"春之歌","author":"佚名","media_path":"/uploads/bgm/65fa366ef5fcd4e1be39b87b69835ad8c1572349.mp3","bgm_info":{"bgm_id":17,"duration":"00:02:29"}},{"id":18,"title":"Nocturne op","author":"佚名","media_path":"/uploads/bgm/b9e97ff960add8b0cf53f96d2c284770be976edb.mp3","bgm_info":{"bgm_id":18,"duration":"00:04:41"}},{"id":19,"title":"幽默曲","author":"佚名","media_path":"/uploads/bgm/0b263e61dd4a7e62e2182f8b17d0cb28610864a6.mp3","bgm_info":{"bgm_id":19,"duration":"00:03:23"}}]
     */

    private int code;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 15
         * title : Piano Sonata No.16 in C
         * author : 佚名
         * media_path : /uploads/bgm/35fcc296110a16ea65aa28858887a0c1d8d739ce.mp3
         * bgm_info : {"bgm_id":15,"duration":"00:06:33"}
         */

        private int id;
        private String title;
        private String author;
        private String media_path;
        private BgmInfoBean bgm_info;
        private boolean isPlaying;
        private int categoriesId;

        public boolean isPlaying() {
            return isPlaying;
        }

        public void setPlaying(boolean playing) {
            isPlaying = playing;
        }

        public int getCategoriesId() {
            return categoriesId;
        }

        public void setCategoriesId(int categoriesId) {
            this.categoriesId = categoriesId;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getAuthor() {
            return author;
        }

        public void setAuthor(String author) {
            this.author = author;
        }

        public String getMedia_path() {
            return media_path;
        }

        public void setMedia_path(String media_path) {
            this.media_path = media_path;
        }

        public BgmInfoBean getBgm_info() {
            return bgm_info;
        }

        public void setBgm_info(BgmInfoBean bgm_info) {
            this.bgm_info = bgm_info;
        }

        public static class BgmInfoBean {
            /**
             * bgm_id : 15
             * duration : 00:06:33
             */

            private int bgm_id;
            private String duration;

            public int getBgm_id() {
                return bgm_id;
            }

            public void setBgm_id(int bgm_id) {
                this.bgm_id = bgm_id;
            }

            public String getDuration() {
                return duration;
            }

            public void setDuration(String duration) {
                this.duration = duration;
            }
        }
    }
}
